package com.dingqb.gradle1;

import com.alibaba.fastjson.JSON;
import com.dingqb.gradle1.rxjava.RxjavaBase;
import com.google.gson.Gson;

public class Hello {
    public static void main(String[] args) {
        System.out.println("hah");
        RxjavaBase.just();
        PersonBean p = new PersonBean();
        p.setId("12");
        p.setLocal(true);
        p.setName("Gson");
        gson(p);
        p.setName("FastJson");
        String fastjsp = JSON.toJSONString(p);
        System.err.println(fastjsp);
    }

    private static void gson(PersonBean p) {
        Gson gson = new Gson();

        String s = gson.toJson(p);
        System.err.println(s);
    }
}
